﻿@model IEnumerable<HRM.DAL.DAO.Evaluation>

@{
    ViewBag.Title = "Index";
}

<h2>Index</h2>

<p  id="index-addlink">
    @Html.ActionLink("Evaluate Performance of New Employee", "Create")
</p>
<table class="view">
    <tr>
        <th>
            EmployeeId
        </th>
        <th>
            ProjectManager
        </th>
        <th>
            Date
        </th>
        <th>
            TechnicalSkill
        </th>
        <th>
            Communication
        </th>
        <th>
            Punctuality
        </th>
        <th>
            Comments
        </th>
        <th></th>
    </tr>

@foreach (var item in Model) {
    <tr>
        <td>
            @Html.DisplayFor(modelItem => item.EmployeeId)
        </td>
        <td>
            @Html.DisplayFor(modelItem => item.ProjectManager.ProjectManagerID)
        </td>
        <td>
            @Html.DisplayFor(modelItem => item.Date)
        </td>
        <td>
            @Html.DisplayFor(modelItem => item.TechnicalSkill)
        </td>
        <td>
            @Html.DisplayFor(modelItem => item.Communication)
        </td>
        <td>
            @Html.DisplayFor(modelItem => item.Punctuality)
        </td>
        <td>
            @Html.DisplayFor(modelItem => item.Comments)
        </td>
        <td>
            @Html.ActionLink("Edit", "Edit", new { id=item.Id }) |
            @Html.ActionLink("Details", "Details", new { id=item.Id }) |
            @Html.ActionLink("Delete", "Delete", new { id=item.Id })
        </td>
    </tr>
}

</table>
